package com.yunfeng.supercall.bean;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import org.json.JSONArray;

import com.lin.bean.PingLunBean;
import com.lin.bean.ZanList;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;

/**
 * 朋友的分享
 * 
 * @author 洋
 * 
 */
public class FriendsShareBean extends BeanBase implements Parcelable {
	private int id;
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	private int shareid;
	private String img;
	private String zannum;
	private String pinglunnum;
	private List<String> photoList;
	private String zanlist;
	private String pinglunlist;
	private int SuColor;
	ArrayList<ZanList> mZanList;
	private String content;
	private int replyid;
	ArrayList<PingLunBean> jsonPinglunList;
	
	int positionNickNameStart;
	int positionNickNameEnd;
	
	int positionContentStart;
	int positionContentEnd;
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public ArrayList<ZanList> getmZanList() {
		return mZanList;
	}

	public void setmZanList(ArrayList<ZanList> mZanList) {
		this.mZanList = mZanList;
	}


	
	public String getPinglunlist() {
		return pinglunlist;
	}

	public void setPinglunlist(String pinglunlist) {
		this.pinglunlist = pinglunlist;
	}

	public ArrayList<PingLunBean> getJsonPinglunList() {
		return jsonPinglunList;
	}

	public void setJsonPinglunList(ArrayList<PingLunBean> jsonPinglunList) {
		this.jsonPinglunList = jsonPinglunList;
	}

	public int getSuColor() {
		return SuColor;
	}

	public void setSuColor(int suColor) {
		SuColor = suColor;
	}

	public String getZanlist() {
		return zanlist;
	}

	public void setZanlist(String zanlist) {
		this.zanlist = zanlist;
	}

	public static final Creator<FriendsShareBean> CREATOR = new Creator<FriendsShareBean>() {

		@Override
		public FriendsShareBean[] newArray(int size) {
			// TODO Auto-generated method stub
			return new FriendsShareBean[size];
		}

		@Override
		public FriendsShareBean createFromParcel(Parcel source) {
			// TODO Auto-generated method stub
			return new FriendsShareBean(source);
		}
	};

	public FriendsShareBean() {

	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		super.writeToParcel(dest, flags);
		dest.writeInt(shareid);
		dest.writeString(img);
		dest.writeString(zannum);
		dest.writeString(pinglunnum);
		dest.writeString(zanlist);
		dest.writeString(pinglunlist);
		
		
	}

	public FriendsShareBean(Parcel parcel) {
		super(parcel);
		shareid = parcel.readInt();
		img = parcel.readString();
		zannum = parcel.readString();
		pinglunnum = parcel.readString();
		zanlist = parcel.readString();
		pinglunlist = parcel.readString();
	}

	public int getShareid() {
		return shareid;
	}

	public List<String> getPhotoList() {
		if (photoList == null) {
			if (!TextUtils.isEmpty(img)) {
				photoList = new ArrayList<String>();
				photoList.addAll(Arrays.asList(img.split(";")));
			} else {
				photoList = new ArrayList<String>();
			}
		}
		return photoList;
	}

	public void setShareid(int shareid) {
		this.shareid = shareid;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getZannum() {
		return zannum;
	}

	public void setZannum(String zannum) {
		this.zannum = zannum;
	}

	public String getPinglunnum() {
		return pinglunnum;
	}

	public void setPinglunnum(String pinglunnum) {
		this.pinglunnum = pinglunnum;
	}

	public int getReplyid() {
		return replyid;
	}

	public void setReplyid(int replyid) {
		this.replyid = replyid;
	}

	public int getPositionNickNameStart() {
		return positionNickNameStart;
	}

	public int getPositionContentStart() {
		return positionContentStart;
	}

	public void setPositionContentStart(int positionContentStart) {
		this.positionContentStart = positionContentStart;
	}

	public void setPositionContentEnd(int positionContentEnd) {
		this.positionContentEnd = positionContentEnd;
	}
	
	public void setPositionNickNameStart(int positionNickNameStart) {
		this.positionNickNameStart = positionNickNameStart;
	}

	public int getPositionNickNameEnd() {
		return positionNickNameEnd;
	}

	public void setPositionNickNameEnd(int positionNickNameEnd) {
		this.positionNickNameEnd = positionNickNameEnd;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

}
